package com.larry.resend.motion.am;

import com.larry.resend.common.CommonSender;

public class MotionEdiResender {

	private final String MESSAGE_TYPE = MessageType.R02PEGMTCSH.toString();

	private CommonSender processor;

	public static void main(String[] args) throws Exception {
		MotionEdiResender resender = new MotionEdiResender();
		String[] list = { "485541-C5Z8P" };
		for (String caseNumber : list) {
			resender.process(caseNumber);
		}
	}

	public void process(String caseNumber) throws Exception {
		processor = MessageType.valueOf(MESSAGE_TYPE).getProcessor();
		processor.process(caseNumber);
	}
}
